home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / Displays.a < prev    next >
Encoding:
Text File  |  1997-08-12  |  32.8 KB  |  1,075 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Displays.a
  3. ;
  4. ;    Contains:    Display Manager Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0.1
  8. ;
  9. ;    Copyright:    © 1993-1997 by Apple Computer, Inc., all rights reserved.
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__DISPLAYS__') = 'UNDEFINED' THEN
  19. __DISPLAYS__ SET 1
  20.  
  21.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  22.     include 'ConditionalMacros.a'
  23.     ENDIF
  24.     IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
  25.     include 'Components.a'
  26.     ENDIF
  27.     IF &TYPE('__VIDEO__') = 'UNDEFINED' THEN
  28.     include 'Video.a'
  29.     ENDIF
  30.  
  31.     IF 0 THEN
  32.  
  33.     IF &TYPE('__APPLEEVENTS__') = 'UNDEFINED' THEN
  34.     include 'AppleEvents.a'
  35.     ENDIF
  36.     IF &TYPE('__EVENTS__') = 'UNDEFINED' THEN
  37.     include 'Events.a'
  38.     ENDIF
  39.     IF &TYPE('__PROCESSES__') = 'UNDEFINED' THEN
  40.     include 'Processes.a'
  41.     ENDIF
  42.     IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
  43.     include 'Dialogs.a'
  44.     ENDIF
  45.     ENDIF
  46.  
  47.     IF &TYPE('FOR_GLUE_LIB') = 'UNDEFINED' THEN
  48.     FOR_GLUE_LIB: SET 0
  49.     ENDIF
  50.  
  51.                                                             ; AppleEvents Core Suite 
  52. kAESystemConfigNotice            EQU        'cnfg'                ; Core Suite types 
  53. kAEDisplayNotice                EQU        'dspl'
  54. kAEDisplaySummary                EQU        'dsum'
  55. keyDMConfigVersion                EQU        'dmcv'
  56. keyDMConfigFlags                EQU        'dmcf'
  57. keyDMConfigReserved                EQU        'dmcr'
  58. keyDisplayID                    EQU        'dmid'
  59. keyDisplayComponent                EQU        'dmdc'
  60. keyDisplayDevice                EQU        'dmdd'
  61. keyDisplayFlags                    EQU        'dmdf'
  62. keyDisplayMode                    EQU        'dmdm'
  63. keyDisplayModeReserved            EQU        'dmmr'
  64. keyDisplayReserved                EQU        'dmdr'
  65. keyDisplayMirroredId            EQU        'dmmi'
  66. keyDeviceFlags                    EQU        'dddf'
  67. keyDeviceDepthMode                EQU        'dddm'
  68. keyDeviceRect                    EQU        'dddr'
  69. keyPixMapRect                    EQU        'dpdr'
  70. keyPixMapHResolution            EQU        'dphr'
  71. keyPixMapVResolution            EQU        'dpvr'
  72. keyPixMapPixelType                EQU        'dppt'
  73. keyPixMapPixelSize                EQU        'dpps'
  74. keyPixMapCmpCount                EQU        'dpcc'
  75. keyPixMapCmpSize                EQU        'dpcs'
  76. keyPixMapAlignment                EQU        'dppa'
  77. keyPixMapResReserved            EQU        'dprr'
  78. keyPixMapReserved                EQU        'dppr'
  79. keyPixMapColorTableSeed            EQU        'dpct'
  80. keySummaryMenubar                EQU        'dsmb'
  81. keySummaryChanges                EQU        'dsch'
  82. keyDisplayOldConfig                EQU        'dold'
  83. keyDisplayNewConfig                EQU        'dnew'
  84.  
  85. dmOnlyActiveDisplays            EQU        1
  86. dmAllDisplays                    EQU        0
  87.  
  88.  
  89.                                                             ; DMSendDependentNotification notifyClass 
  90. kDependentNotifyClassShowCursor    EQU        'shcr'                ; When display mgr shows a hidden cursor during an unmirror 
  91. kDependentNotifyClassDriverOverride EQU    'ndrv'                ; When a driver is overridden 
  92. kDependentNotifyClassDisplayMgrOverride EQU 'dmgr'            ; When display manager is upgraded 
  93.  
  94.  
  95.                                                             ; Switch Flags 
  96. kNoSwitchConfirmBit                EQU        0                    ; Flag indicating that there is no need to confirm a switch to this mode 
  97. kDepthNotAvailableBit            EQU        1                    ; Current depth not available in new mode 
  98. kShowModeBit                    EQU        3                    ; Show this mode even though it requires a confirm. 
  99. kModeNotResizeBit                EQU        4                    ; Do not use this mode to resize display (for cards that mode drives a different connector). 
  100. kNeverShowModeBit                EQU        5                    ; This mode should not be shown in the user interface. 
  101. ;     Summary Change Flags (sticky bits indicating an operation was performed)
  102. ;    For example, moving a display then moving it back will still set the kMovedDisplayBit.
  103. ;
  104.  
  105.  
  106. kBeginEndConfigureBit            EQU        0
  107. kMovedDisplayBit                EQU        1
  108. kSetMainDisplayBit                EQU        2
  109. kSetDisplayModeBit                EQU        3
  110. kAddDisplayBit                    EQU        4
  111. kRemoveDisplayBit                EQU        5
  112. kNewDisplayBit                    EQU        6
  113. kDisposeDisplayBit                EQU        7
  114. kEnabledDisplayBit                EQU        8
  115. kDisabledDisplayBit                EQU        9
  116. kMirrorDisplayBit                EQU        10
  117. kUnMirrorDisplayBit                EQU        11
  118.  
  119.  
  120.                                                             ; Notification Messages for extended call back routines 
  121. kDMNotifyInstalled                EQU        1                    ; At install time 
  122. kDMNotifyEvent                    EQU        2                    ; Post change time 
  123. kDMNotifyRemoved                EQU        3                    ; At remove time 
  124. kDMNotifyPrep                    EQU        4                    ; Pre change time 
  125. kDMNotifyExtendEvent            EQU        5                    ; Allow registrees to extend apple event before it is sent 
  126. kDMNotifyDependents                EQU        6                    ; Minor notification check without full update 
  127. kDMNotifySuspendConfigure        EQU        7                    ; Temporary end of configuration 
  128. kDMNotifyResumeConfigure        EQU        8                    ; Resume configuration 
  129.                                                             ; Notification Flags 
  130. kExtendedNotificationProc        EQU        $00010000
  131.  
  132. ;  types for notifyType 
  133.  
  134. kFullNotify                        EQU        0                    ; This is the appleevent whole nine yards notify 
  135. kFullDependencyNotify            EQU        1                    ; Only sends to those who want to know about interrelated functionality (used for updating UI) 
  136. ;  DisplayID/DeviceID constants 
  137.  
  138. kDummyDeviceID                    EQU        $00FF                ; This is the ID of the dummy display, used when the last “real” display is disabled.
  139. kInvalidDisplayID                EQU        $0000                ; This is the invalid ID
  140. kFirstDisplayID                    EQU        $0100
  141.  
  142.                                                             ; bits for panelListFlags 
  143. kAllowDuplicatesBit                EQU        0
  144.  
  145.                                                             ; bits for nameFlags 
  146. kSuppressNumberBit                EQU        0
  147. kSuppressNumberMask                EQU        1
  148. kForceNumberBit                    EQU        1
  149. kForceNumberMask                EQU        2
  150. kSuppressNameBit                EQU        2
  151. kSuppressNameMask                EQU        4
  152.  
  153.  
  154. ;  Constants for fidelity checks 
  155.  
  156. kNoFidelity                        EQU        0
  157. kMinimumFidelity                EQU        1
  158. kDefaultFidelity                EQU        500                    ; I'm just picking a number for Apple default panels and engines
  159. kDefaultManufacturerFidelity    EQU        1000                ; I'm just picking a number for Manufacturer's panels and engines (overrides apple defaults)
  160.  
  161. kAnyPanelType                    EQU        0                    ; Pass to DMNewEngineList for list of all panels (as opposed to specific types)
  162. kAnyEngineType                    EQU        0                    ; Pass to DMNewEngineList for list of all engines
  163. kAnyDeviceType                    EQU        0                    ; Pass to DMNewDeviceList for list of all devices
  164. kAnyPortType                    EQU        0                    ; Pass to DMNewDevicePortList for list of all devices
  165. ;  portListFlags for DM_NewDevicePortList 
  166.  
  167.                                                             ; Should offline devices be put into the port list (such as dummy display) 
  168. kPLIncludeOfflineDevicesBit        EQU        0
  169.  
  170. ;  confirmFlags for DMConfirmConfiguration 
  171.  
  172. kForceConfirmBit                EQU        0                    ; Force a confirm dialog 
  173. kForceConfirmMask                EQU        $01
  174.  
  175. ;  Flags for displayModeFlags 
  176.  
  177. kDisplayModeListNotPreferredBit    EQU        0
  178. kDisplayModeListNotPreferredMask EQU    $01
  179.  
  180. ;  Flags for itemFlags 
  181.  
  182. kComponentListNotPreferredBit    EQU        0
  183. kComponentListNotPreferredMask    EQU        $01
  184.  
  185. ; typedef unsigned long                 DMFidelityType
  186.  
  187. ;  AVID is an ID for ports and devices the old DisplayID type
  188. ;    is carried on for compatibility
  189. ;
  190.  
  191. ; typedef unsigned long                 AVIDType
  192.  
  193. ; typedef AVIDType                         DisplayIDType
  194.  
  195. ; typedef void *                        DMListType
  196.  
  197. ; typedef unsigned long                 DMListIndexType
  198.  
  199. AVPowerStateRec            RECORD 0
  200. f                         ds        VDPowerStateRec
  201. sizeof                     EQU *                    ; size:   $10 (16)
  202.                         ENDR
  203.  
  204.  
  205. ; typedef struct VDPowerStateRec *        AVPowerStatePtr
  206.  
  207. DMComponentListEntryRec    RECORD 0
  208. itemID                     ds.l    1                ; offset: $0 (0)        ;  DisplayID Manager
  209. itemComponent             ds.l    1                ; offset: $4 (4)        ;  Component Manager
  210. itemDescription             ds        ComponentDescription ; offset: $8 (8)    ;  We can always construct this if we use something beyond the compontent mgr.
  211. itemClass                 ds.l    1                ; offset: $1C (28)        ;  Class of group to put this panel (eg geometry/color/etc for panels, brightness/contrast for engines, video out/sound/etc for devices)
  212. itemFidelity             ds.l    1                ; offset: $20 (32)        ;  How good is this item for the specified search?
  213. itemSubClass             ds.l    1                ; offset: $24 (36)        ;  Subclass of group to put this panel.  Can use to do sub-grouping (eg volume for volume panel and mute panel)
  214. itemSort                 ds        Point            ; offset: $28 (40)        ;  Set to 0 - future to sort the items in a sub group.
  215. itemFlags                 ds.l    1                ; offset: $2C (44)        ;  Set to 0 (future expansion)
  216. itemReserved             ds.l    1                ; offset: $30 (48)        ;  What kind of code does the itemReference point to  (right now - kPanelEntryTypeComponentMgr only)
  217. itemFuture1                 ds.l    1                ; offset: $34 (52)        ;  Set to 0 (future expansion - probably an alternate code style)
  218. itemFuture2                 ds.l    1                ; offset: $38 (56)        ;  Set to 0 (future expansion - probably an alternate code style)
  219. itemFuture3                 ds.l    1                ; offset: $3C (60)        ;  Set to 0 (future expansion - probably an alternate code style)
  220. itemFuture4                 ds.l    1                ; offset: $40 (64)        ;  Set to 0 (future expansion - probably an alternate code style)
  221. sizeof                     EQU *                    ; size:   $44 (68)
  222.                         ENDR
  223. ; typedef struct DMComponentListEntryRec * DMComponentListEntryPtr
  224.  
  225. ;  ••• Move AVLocationRec to AVComponents.i AFTER AVComponents.i is created
  226. AVLocationRec            RECORD 0
  227. locationConstant         ds.l    1                ; offset: $0 (0)        ;  Set to 0 (future expansion - probably an alternate code style)
  228. sizeof                     EQU *                    ; size:   $4 (4)
  229.                         ENDR
  230. ; typedef struct AVLocationRec *        AVLocationPtr
  231.  
  232. DMDepthInfoRec            RECORD 0
  233. depthSwitchInfo             ds.l    1                ; offset: $0 (0)        ;  This is the switch mode to choose this timing/depth 
  234. depthVPBlock             ds.l    1                ; offset: $4 (4)        ;  VPBlock (including size, depth and format) 
  235. depthFlags                 ds.l    1                ; offset: $8 (8)        ;  VDVideoParametersInfoRec.csDepthFlags  
  236. depthReserved1             ds.l    1                ; offset: $C (12)        ;  Reserved 
  237. depthReserved2             ds.l    1                ; offset: $10 (16)        ;  Reserved 
  238. sizeof                     EQU *                    ; size:   $14 (20)
  239.                         ENDR
  240. ; typedef struct DMDepthInfoRec *        DMDepthInfoPtr
  241.  
  242. DMDepthInfoBlockRec        RECORD 0
  243. depthBlockCount             ds.l    1                ; offset: $0 (0)        ;  How many depths are there? 
  244. depthVPBlock             ds.l    1                ; offset: $4 (4)        ;  Array of DMDepthInfoRec 
  245. depthBlockFlags             ds.l    1                ; offset: $8 (8)        ;  Reserved 
  246. depthBlockReserved1         ds.l    1                ; offset: $C (12)        ;  Reserved 
  247. depthBlockReserved2         ds.l    1                ; offset: $10 (16)        ;  Reserved 
  248. sizeof                     EQU *                    ; size:   $14 (20)
  249.                         ENDR
  250. ; typedef struct DMDepthInfoBlockRec *    DMDepthInfoBlockPtr
  251.  
  252. DMDisplayModeListEntryRec RECORD 0
  253. displayModeFlags         ds.l    1                ; offset: $0 (0)
  254. displayModeSwitchInfo     ds.l    1                ; offset: $4 (4)
  255. displayModeResolutionInfo  ds.l    1                ; offset: $8 (8)
  256. displayModeTimingInfo     ds.l    1                ; offset: $C (12)
  257. displayModeDepthBlockInfo  ds.l    1                ; offset: $10 (16)        ;  Information about all the depths
  258. displayModeReserved1     ds.l    1                ; offset: $14 (20)        ;  Reserved
  259. displayModeName             ds.l    1                ; offset: $18 (24)        ;  Name of the timing mode
  260. sizeof                     EQU *                    ; size:   $1C (28)
  261.                         ENDR
  262. ; typedef struct DMDisplayModeListEntryRec * DMDisplayModeListEntryPtr
  263.  
  264.  
  265. DependentNotifyRec        RECORD 0
  266. notifyType                 ds.l    1                ; offset: $0 (0)        ;  What type was the engine that made the change (may be zero)
  267. notifyClass                 ds.l    1                ; offset: $4 (4)        ;  What class was the change (eg geometry, color etc)
  268. notifyPortID             ds.l    1                ; offset: $8 (8)        ;  Which device was touched (kInvalidDisplayID -> all or none)
  269. notifyComponent             ds.l    1                ; offset: $C (12)        ;  What engine did it (may be 0)?
  270. notifyVersion             ds.l    1                ; offset: $10 (16)        ;  Set to 0 (future expansion)
  271. notifyFlags                 ds.l    1                ; offset: $14 (20)        ;  Set to 0 (future expansion)
  272. notifyReserved             ds.l    1                ; offset: $18 (24)        ;  Set to 0 (future expansion)
  273. notifyFuture             ds.l    1                ; offset: $1C (28)        ;  Set to 0 (future expansion)
  274. sizeof                     EQU *                    ; size:   $20 (32)
  275.                         ENDR
  276. ; typedef struct DependentNotifyRec *    DependentNotifyPtr
  277.  
  278. ;  Exports to support Interfaces library containing unused calls 
  279.     IF ¬ FOR_GLUE_LIB THEN
  280.     ENDIF
  281.  
  282. ;  Trap interfaces 
  283.  
  284.     IF ¬ FOR_GLUE_LIB THEN
  285. ;
  286. ; pascal GDHandle DMGetFirstScreenDevice(Boolean activeOnly)
  287. ;
  288.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  289.         Macro
  290.         _DMGetFirstScreenDevice
  291.             moveq               #0,D0
  292.             dc.w                $ABEB
  293.         EndM
  294.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  295.         IMPORT_CFM_FUNCTION DMGetFirstScreenDevice
  296.     ENDIF
  297.  
  298. ;
  299. ; pascal GDHandle DMGetNextScreenDevice(GDHandle theDevice, Boolean activeOnly)
  300. ;
  301.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  302.         Macro
  303.         _DMGetNextScreenDevice
  304.             moveq               #1,D0
  305.             dc.w                $ABEB
  306.         EndM
  307.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  308.         IMPORT_CFM_FUNCTION DMGetNextScreenDevice
  309.     ENDIF
  310.  
  311. ;
  312. ; pascal void DMDrawDesktopRect(Rect *globalRect)
  313. ;
  314.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  315.         Macro
  316.         _DMDrawDesktopRect
  317.             moveq               #2,D0
  318.             dc.w                $ABEB
  319.         EndM
  320.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  321.         IMPORT_CFM_FUNCTION DMDrawDesktopRect
  322.     ENDIF
  323.  
  324. ;
  325. ; pascal void DMDrawDesktopRegion(RgnHandle globalRgn)
  326. ;
  327.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  328.         Macro
  329.         _DMDrawDesktopRegion
  330.             moveq               #3,D0
  331.             dc.w                $ABEB
  332.         EndM
  333.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  334.         IMPORT_CFM_FUNCTION DMDrawDesktopRegion
  335.     ENDIF
  336.  
  337.  
  338.  
  339. ;
  340. ; pascal OSErr DMBeginConfigureDisplays(Handle *displayState)
  341. ;
  342.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  343.         Macro
  344.         _DMBeginConfigureDisplays
  345.             move.w              #$0206,D0
  346.             dc.w                $ABEB
  347.         EndM
  348.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  349.         IMPORT_CFM_FUNCTION DMBeginConfigureDisplays
  350.     ENDIF
  351.  
  352. ;
  353. ; pascal OSErr DMEndConfigureDisplays(Handle displayState)
  354. ;
  355.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  356.         Macro
  357.         _DMEndConfigureDisplays
  358.             move.w              #$0207,D0
  359.             dc.w                $ABEB
  360.         EndM
  361.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  362.         IMPORT_CFM_FUNCTION DMEndConfigureDisplays
  363.     ENDIF
  364.  
  365. ;
  366. ; pascal OSErr DMAddDisplay(GDHandle newDevice, short driver, unsigned long mode, unsigned long reserved, unsigned long displayID, Component displayComponent, Handle displayState)
  367. ;
  368.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  369.         Macro
  370.         _DMAddDisplay
  371.             move.w              #$0D08,D0
  372.             dc.w                $ABEB
  373.         EndM
  374.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  375.         IMPORT_CFM_FUNCTION DMAddDisplay
  376.     ENDIF
  377.  
  378. ;
  379. ; pascal OSErr DMMoveDisplay(GDHandle moveDevice, short x, short y, Handle displayState)
  380. ;
  381.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  382.         Macro
  383.         _DMMoveDisplay
  384.             move.w              #$0609,D0
  385.             dc.w                $ABEB
  386.         EndM
  387.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  388.         IMPORT_CFM_FUNCTION DMMoveDisplay
  389.     ENDIF
  390.  
  391. ;
  392. ; pascal OSErr DMDisableDisplay(GDHandle disableDevice, Handle displayState)
  393. ;
  394.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  395.         Macro
  396.         _DMDisableDisplay
  397.             move.w              #$040A,D0
  398.             dc.w                $ABEB
  399.         EndM
  400.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  401.         IMPORT_CFM_FUNCTION DMDisableDisplay
  402.     ENDIF
  403.  
  404. ;
  405. ; pascal OSErr DMEnableDisplay(GDHandle enableDevice, Handle displayState)
  406. ;
  407.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  408.         Macro
  409.         _DMEnableDisplay
  410.             move.w              #$040B,D0
  411.             dc.w                $ABEB
  412.         EndM
  413.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  414.         IMPORT_CFM_FUNCTION DMEnableDisplay
  415.     ENDIF
  416.  
  417. ;
  418. ; pascal OSErr DMRemoveDisplay(GDHandle removeDevice, Handle displayState)
  419. ;
  420.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  421.         Macro
  422.         _DMRemoveDisplay
  423.             move.w              #$040C,D0
  424.             dc.w                $ABEB
  425.         EndM
  426.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  427.         IMPORT_CFM_FUNCTION DMRemoveDisplay
  428.     ENDIF
  429.  
  430.  
  431.  
  432.  
  433. ;
  434. ; pascal OSErr DMSetMainDisplay(GDHandle newMainDevice, Handle displayState)
  435. ;
  436.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  437.         Macro
  438.         _DMSetMainDisplay
  439.             move.w              #$0410,D0
  440.             dc.w                $ABEB
  441.         EndM
  442.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  443.         IMPORT_CFM_FUNCTION DMSetMainDisplay
  444.     ENDIF
  445.  
  446. ;
  447. ; pascal OSErr DMSetDisplayMode(GDHandle theDevice, unsigned long mode, unsigned long *depthMode, unsigned long reserved, Handle displayState)
  448. ;
  449.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  450.         Macro
  451.         _DMSetDisplayMode
  452.             move.w              #$0A11,D0
  453.             dc.w                $ABEB
  454.         EndM
  455.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  456.         IMPORT_CFM_FUNCTION DMSetDisplayMode
  457.     ENDIF
  458.  
  459. ;
  460. ; pascal OSErr DMCheckDisplayMode(GDHandle theDevice, unsigned long mode, unsigned long depthMode, unsigned long *switchFlags, unsigned long reserved, Boolean *modeOk)
  461. ;
  462.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  463.         Macro
  464.         _DMCheckDisplayMode
  465.             move.w              #$0C12,D0
  466.             dc.w                $ABEB
  467.         EndM
  468.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  469.         IMPORT_CFM_FUNCTION DMCheckDisplayMode
  470.     ENDIF
  471.  
  472. ;
  473. ; pascal OSErr DMGetDeskRegion(RgnHandle *desktopRegion)
  474. ;
  475.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  476.         Macro
  477.         _DMGetDeskRegion
  478.             move.w              #$0213,D0
  479.             dc.w                $ABEB
  480.         EndM
  481.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  482.         IMPORT_CFM_FUNCTION DMGetDeskRegion
  483.     ENDIF
  484.  
  485. ;
  486. ; pascal OSErr DMRegisterNotifyProc(DMNotificationUPP notificationProc, ProcessSerialNumberPtr whichPSN)
  487. ;
  488.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  489.         Macro
  490.         _DMRegisterNotifyProc
  491.             move.w              #$0414,D0
  492.             dc.w                $ABEB
  493.         EndM
  494.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  495.         IMPORT_CFM_FUNCTION DMRegisterNotifyProc
  496.     ENDIF
  497.  
  498. ;
  499. ; pascal OSErr DMRemoveNotifyProc(DMNotificationUPP notificationProc, ProcessSerialNumberPtr whichPSN)
  500. ;
  501.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  502.         Macro
  503.         _DMRemoveNotifyProc
  504.             move.w              #$0415,D0
  505.             dc.w                $ABEB
  506.         EndM
  507.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  508.         IMPORT_CFM_FUNCTION DMRemoveNotifyProc
  509.     ENDIF
  510.  
  511.  
  512. ;
  513. ; pascal OSErr DMQDIsMirroringCapable(Boolean *qdIsMirroringCapable)
  514. ;
  515.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  516.         Macro
  517.         _DMQDIsMirroringCapable
  518.             move.w              #$0216,D0
  519.             dc.w                $ABEB
  520.         EndM
  521.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  522.         IMPORT_CFM_FUNCTION DMQDIsMirroringCapable
  523.     ENDIF
  524.  
  525. ;
  526. ; pascal OSErr DMCanMirrorNow(Boolean *canMirrorNow)
  527. ;
  528.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  529.         Macro
  530.         _DMCanMirrorNow
  531.             move.w              #$0217,D0
  532.             dc.w                $ABEB
  533.         EndM
  534.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  535.         IMPORT_CFM_FUNCTION DMCanMirrorNow
  536.     ENDIF
  537.  
  538. ;
  539. ; pascal OSErr DMIsMirroringOn(Boolean *isMirroringOn)
  540. ;
  541.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  542.         Macro
  543.         _DMIsMirroringOn
  544.             move.w              #$0218,D0
  545.             dc.w                $ABEB
  546.         EndM
  547.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  548.         IMPORT_CFM_FUNCTION DMIsMirroringOn
  549.     ENDIF
  550.  
  551. ;
  552. ; pascal OSErr DMMirrorDevices(GDHandle gD1, GDHandle gD2, Handle displayState)
  553. ;
  554.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  555.         Macro
  556.         _DMMirrorDevices
  557.             move.w              #$0619,D0
  558.             dc.w                $ABEB
  559.         EndM
  560.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  561.         IMPORT_CFM_FUNCTION DMMirrorDevices
  562.     ENDIF
  563.  
  564. ;
  565. ; pascal OSErr DMUnmirrorDevice(GDHandle gDevice, Handle displayState)
  566. ;
  567.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  568.         Macro
  569.         _DMUnmirrorDevice
  570.             move.w              #$041A,D0
  571.             dc.w                $ABEB
  572.         EndM
  573.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  574.         IMPORT_CFM_FUNCTION DMUnmirrorDevice
  575.     ENDIF
  576.  
  577. ;
  578. ; pascal OSErr DMGetNextMirroredDevice(GDHandle gDevice, GDHandle *mirroredDevice)
  579. ;
  580.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  581.         Macro
  582.         _DMGetNextMirroredDevice
  583.             move.w              #$041B,D0
  584.             dc.w                $ABEB
  585.         EndM
  586.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  587.         IMPORT_CFM_FUNCTION DMGetNextMirroredDevice
  588.     ENDIF
  589.  
  590. ;
  591. ; pascal OSErr DMBlockMirroring(void )
  592. ;
  593.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  594.         Macro
  595.         _DMBlockMirroring
  596.             moveq               #28,D0
  597.             dc.w                $ABEB
  598.         EndM
  599.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  600.         IMPORT_CFM_FUNCTION DMBlockMirroring
  601.     ENDIF
  602.  
  603. ;
  604. ; pascal OSErr DMUnblockMirroring(void )
  605. ;
  606.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  607.         Macro
  608.         _DMUnblockMirroring
  609.             moveq               #29,D0
  610.             dc.w                $ABEB
  611.         EndM
  612.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  613.         IMPORT_CFM_FUNCTION DMUnblockMirroring
  614.     ENDIF
  615.  
  616. ;
  617. ; pascal OSErr DMGetDisplayMgrA5World(Ptr *dmA5)
  618. ;
  619.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  620.         Macro
  621.         _DMGetDisplayMgrA5World
  622.             move.w              #$021E,D0
  623.             dc.w                $ABEB
  624.         EndM
  625.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  626.         IMPORT_CFM_FUNCTION DMGetDisplayMgrA5World
  627.     ENDIF
  628.  
  629. ;
  630. ; pascal OSErr DMGetDisplayIDByGDevice(GDHandle displayDevice, DisplayIDType *displayID, Boolean failToMain)
  631. ;
  632.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  633.         Macro
  634.         _DMGetDisplayIDByGDevice
  635.             move.w              #$051F,D0
  636.             dc.w                $ABEB
  637.         EndM
  638.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  639.         IMPORT_CFM_FUNCTION DMGetDisplayIDByGDevice
  640.     ENDIF
  641.  
  642. ;
  643. ; pascal OSErr DMGetGDeviceByDisplayID(DisplayIDType displayID, GDHandle *displayDevice, Boolean failToMain)
  644. ;
  645.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  646.         Macro
  647.         _DMGetGDeviceByDisplayID
  648.             move.w              #$0520,D0
  649.             dc.w                $ABEB
  650.         EndM
  651.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  652.         IMPORT_CFM_FUNCTION DMGetGDeviceByDisplayID
  653.     ENDIF
  654.  
  655. ;
  656. ; pascal OSErr DMSetDisplayComponent(GDHandle theDevice, Component displayComponent)
  657. ;
  658.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  659.         Macro
  660.         _DMSetDisplayComponent
  661.             move.w              #$0421,D0
  662.             dc.w                $ABEB
  663.         EndM
  664.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  665.         IMPORT_CFM_FUNCTION DMSetDisplayComponent
  666.     ENDIF
  667.  
  668. ;
  669. ; pascal OSErr DMGetDisplayComponent(GDHandle theDevice, Component *displayComponent)
  670. ;
  671.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  672.         Macro
  673.         _DMGetDisplayComponent
  674.             move.w              #$0422,D0
  675.             dc.w                $ABEB
  676.         EndM
  677.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  678.         IMPORT_CFM_FUNCTION DMGetDisplayComponent
  679.     ENDIF
  680.  
  681. ;
  682. ; pascal OSErr DMNewDisplay(GDHandle *newDevice, short driverRefNum, unsigned long mode, unsigned long reserved, DisplayIDType displayID, Component displayComponent, Handle displayState)
  683. ;
  684.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  685.         Macro
  686.         _DMNewDisplay
  687.             move.w              #$0D23,D0
  688.             dc.w                $ABEB
  689.         EndM
  690.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  691.         IMPORT_CFM_FUNCTION DMNewDisplay
  692.     ENDIF
  693.  
  694. ;
  695. ; pascal OSErr DMDisposeDisplay(GDHandle disposeDevice, Handle displayState)
  696. ;
  697.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  698.         Macro
  699.         _DMDisposeDisplay
  700.             move.w              #$0424,D0
  701.             dc.w                $ABEB
  702.         EndM
  703.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  704.         IMPORT_CFM_FUNCTION DMDisposeDisplay
  705.     ENDIF
  706.  
  707. ;
  708. ; pascal OSErr DMResolveDisplayComponents(void )
  709. ;
  710.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  711.         Macro
  712.         _DMResolveDisplayComponents
  713.             moveq               #37,D0
  714.             dc.w                $ABEB
  715.         EndM
  716.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  717.         IMPORT_CFM_FUNCTION DMResolveDisplayComponents
  718.     ENDIF
  719.  
  720.     ENDIF
  721. ;
  722. ; pascal OSErr DMRegisterExtendedNotifyProc(DMExtendedNotificationUPP notifyProc, void *notifyUserData, unsigned short nofifyOnFlags, ProcessSerialNumberPtr whichPSN)
  723. ;
  724.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  725.         Macro
  726.         _DMRegisterExtendedNotifyProc
  727.             move.w              #$07EF,D0
  728.             dc.w                $ABEB
  729.         EndM
  730.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  731.         IMPORT_CFM_FUNCTION DMRegisterExtendedNotifyProc
  732.     ENDIF
  733.  
  734. ;
  735. ; pascal OSErr DMRemoveExtendedNotifyProc(DMExtendedNotificationUPP notifyProc, void *notifyUserData, ProcessSerialNumberPtr whichPSN, unsigned short removeFlags)
  736. ;
  737.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  738.         Macro
  739.         _DMRemoveExtendedNotifyProc
  740.             move.w              #$0726,D0
  741.             dc.w                $ABEB
  742.         EndM
  743.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  744.         IMPORT_CFM_FUNCTION DMRemoveExtendedNotifyProc
  745.     ENDIF
  746.  
  747. ;
  748. ; pascal OSErr DMNewAVPanelList(DisplayIDType displayID, ResType panelType, DMFidelityType minimumFidelity, unsigned long panelListFlags, unsigned long reserved, DMListIndexType *thePanelCount, DMListType *thePanelList)
  749. ;
  750.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  751.         Macro
  752.         _DMNewAVPanelList
  753.             move.w              #$0C27,D0
  754.             dc.w                $ABEB
  755.         EndM
  756.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  757.         IMPORT_CFM_FUNCTION DMNewAVPanelList
  758.     ENDIF
  759.  
  760. ;
  761. ; pascal OSErr DMNewAVEngineList(DisplayIDType displayID, ResType engineType, DMFidelityType minimumFidelity, unsigned long engineListFlags, unsigned long reserved, DMListIndexType *engineCount, DMListType *engineList)
  762. ;
  763.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  764.         Macro
  765.         _DMNewAVEngineList
  766.             move.w              #$0C28,D0
  767.             dc.w                $ABEB
  768.         EndM
  769.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  770.         IMPORT_CFM_FUNCTION DMNewAVEngineList
  771.     ENDIF
  772.  
  773. ;
  774. ; pascal OSErr DMNewAVDeviceList(ResType deviceType, unsigned long deviceListFlags, unsigned long reserved, DMListIndexType *deviceCount, DMListType *deviceList)
  775. ;
  776.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  777.         Macro
  778.         _DMNewAVDeviceList
  779.             move.w              #$0A29,D0
  780.             dc.w                $ABEB
  781.         EndM
  782.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  783.         IMPORT_CFM_FUNCTION DMNewAVDeviceList
  784.     ENDIF
  785.  
  786. ;
  787. ; pascal OSErr DMNewAVPortListByPortType(ResType subType, unsigned long portListFlags, unsigned long reserved, DMListIndexType *devicePortCount, DMListType *theDevicePortList)
  788. ;
  789.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  790.         Macro
  791.         _DMNewAVPortListByPortType
  792.             move.w              #$0A2A,D0
  793.             dc.w                $ABEB
  794.         EndM
  795.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  796.         IMPORT_CFM_FUNCTION DMNewAVPortListByPortType
  797.     ENDIF
  798.  
  799. ;
  800. ; pascal OSErr DMGetIndexedComponentFromList(DMListType panelList, DMListIndexType itemIndex, unsigned long reserved, DMComponentListIteratorUPP listIterator, void *userData)
  801. ;
  802.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  803.         Macro
  804.         _DMGetIndexedComponentFromList
  805.             move.w              #$0A2B,D0
  806.             dc.w                $ABEB
  807.         EndM
  808.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  809.         IMPORT_CFM_FUNCTION DMGetIndexedComponentFromList
  810.     ENDIF
  811.  
  812. ;
  813. ; pascal OSErr DMDisposeList(DMListType panelList)
  814. ;
  815.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  816.         Macro
  817.         _DMDisposeList
  818.             move.w              #$022C,D0
  819.             dc.w                $ABEB
  820.         EndM
  821.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  822.         IMPORT_CFM_FUNCTION DMDisposeList
  823.     ENDIF
  824.  
  825. ;
  826. ; pascal OSErr DMGetNameByAVID(AVIDType theID, unsigned long nameFlags, Str255 name)
  827. ;
  828.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  829.         Macro
  830.         _DMGetNameByAVID
  831.             move.w              #$062D,D0
  832.             dc.w                $ABEB
  833.         EndM
  834.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  835.         IMPORT_CFM_FUNCTION DMGetNameByAVID
  836.     ENDIF
  837.  
  838. ;
  839. ; pascal OSErr DMNewAVIDByPortComponent(Component thePortComponent, ResType portKind, unsigned long reserved, AVIDType *newID)
  840. ;
  841.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  842.         Macro
  843.         _DMNewAVIDByPortComponent
  844.             move.w              #$082E,D0
  845.             dc.w                $ABEB
  846.         EndM
  847.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  848.         IMPORT_CFM_FUNCTION DMNewAVIDByPortComponent
  849.     ENDIF
  850.  
  851. ;
  852. ; pascal OSErr DMGetPortComponentByAVID(DisplayIDType thePortID, Component *thePortComponent, ComponentDescription *theDesciption, ResType *thePortKind)
  853. ;
  854.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  855.         Macro
  856.         _DMGetPortComponentByAVID
  857.             move.w              #$082F,D0
  858.             dc.w                $ABEB
  859.         EndM
  860.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  861.         IMPORT_CFM_FUNCTION DMGetPortComponentByAVID
  862.     ENDIF
  863.  
  864. ;
  865. ; pascal OSErr DMSendDependentNotification(ResType notifyType, ResType notifyClass, AVIDType displayID, ComponentInstance notifyComponent)
  866. ;
  867.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  868.         Macro
  869.         _DMSendDependentNotification
  870.             move.w              #$0830,D0
  871.             dc.w                $ABEB
  872.         EndM
  873.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  874.         IMPORT_CFM_FUNCTION DMSendDependentNotification
  875.     ENDIF
  876.  
  877. ;
  878. ; pascal OSErr DMDisposeAVComponent(Component theAVComponent)
  879. ;
  880.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  881.         Macro
  882.         _DMDisposeAVComponent
  883.             move.w              #$0231,D0
  884.             dc.w                $ABEB
  885.         EndM
  886.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  887.         IMPORT_CFM_FUNCTION DMDisposeAVComponent
  888.     ENDIF
  889.  
  890. ;
  891. ; pascal OSErr DMSaveScreenPrefs(unsigned long reserved1, unsigned long saveFlags, unsigned long reserved2)
  892. ;
  893.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  894.         Macro
  895.         _DMSaveScreenPrefs
  896.             move.w              #$0632,D0
  897.             dc.w                $ABEB
  898.         EndM
  899.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  900.         IMPORT_CFM_FUNCTION DMSaveScreenPrefs
  901.     ENDIF
  902.  
  903. ;
  904. ; pascal OSErr DMNewAVIDByDeviceComponent(Component theDeviceComponent, ResType portKind, unsigned long reserved, DisplayIDType *newID)
  905. ;
  906.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  907.         Macro
  908.         _DMNewAVIDByDeviceComponent
  909.             move.w              #$0833,D0
  910.             dc.w                $ABEB
  911.         EndM
  912.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  913.         IMPORT_CFM_FUNCTION DMNewAVIDByDeviceComponent
  914.     ENDIF
  915.  
  916. ;
  917. ; pascal OSErr DMNewAVPortListByDeviceAVID(AVIDType theID, DMFidelityType minimumFidelity, unsigned long portListFlags, unsigned long reserved, DMListIndexType *devicePortCount, DMListType *theDevicePortList)
  918. ;
  919.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  920.         Macro
  921.         _DMNewAVPortListByDeviceAVID
  922.             move.w              #$0C34,D0
  923.             dc.w                $ABEB
  924.         EndM
  925.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  926.         IMPORT_CFM_FUNCTION DMNewAVPortListByDeviceAVID
  927.     ENDIF
  928.  
  929. ;
  930. ; pascal OSErr DMGetDeviceComponentByAVID(AVIDType theDeviceID, Component *theDeviceComponent, ComponentDescription *theDesciption, ResType *theDeviceKind)
  931. ;
  932.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  933.         Macro
  934.         _DMGetDeviceComponentByAVID
  935.             move.w              #$0835,D0
  936.             dc.w                $ABEB
  937.         EndM
  938.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  939.         IMPORT_CFM_FUNCTION DMGetDeviceComponentByAVID
  940.     ENDIF
  941.  
  942. ;
  943. ; pascal OSErr DMNewDisplayModeList(DisplayIDType displayID, unsigned long modeListFlags, unsigned long reserved, DMListIndexType *thePanelCount, DMListType *thePanelList)
  944. ;
  945.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  946.         Macro
  947.         _DMNewDisplayModeList
  948.             move.w              #$0A36,D0
  949.             dc.w                $ABEB
  950.         EndM
  951.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  952.         IMPORT_CFM_FUNCTION DMNewDisplayModeList
  953.     ENDIF
  954.  
  955. ;
  956. ; pascal OSErr DMGetIndexedDisplayModeFromList(DMListType panelList, DMListIndexType itemIndex, unsigned long reserved, DMDisplayModeListIteratorUPP listIterator, void *userData)
  957. ;
  958.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  959.         Macro
  960.         _DMGetIndexedDisplayModeFromList
  961.             move.w              #$0A37,D0
  962.             dc.w                $ABEB
  963.         EndM
  964.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  965.         IMPORT_CFM_FUNCTION DMGetIndexedDisplayModeFromList
  966.     ENDIF
  967.  
  968. ;
  969. ; pascal OSErr DMGetGraphicInfoByAVID(AVIDType theID, PicHandle *theAVPcit, Handle *theAVIconSuite, AVLocationRec *theAVLocation)
  970. ;
  971.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  972.         Macro
  973.         _DMGetGraphicInfoByAVID
  974.             move.w              #$0838,D0
  975.             dc.w                $ABEB
  976.         EndM
  977.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  978.         IMPORT_CFM_FUNCTION DMGetGraphicInfoByAVID
  979.     ENDIF
  980.  
  981. ;
  982. ; pascal OSErr DMGetAVPowerState(AVIDType theID, AVPowerStatePtr getPowerState, unsigned long reserved1)
  983. ;
  984.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  985.         Macro
  986.         _DMGetAVPowerState
  987.             move.w              #$0839,D0
  988.             dc.w                $ABEB
  989.         EndM
  990.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  991.         IMPORT_CFM_FUNCTION DMGetAVPowerState
  992.     ENDIF
  993.  
  994. ;
  995. ; pascal OSErr DMSetAVPowerState(AVIDType theID, AVPowerStatePtr setPowerState, unsigned long powerFlags, Handle displayState)
  996. ;
  997.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  998.         Macro
  999.         _DMSetAVPowerState
  1000.             move.w              #$083A,D0
  1001.             dc.w                $ABEB
  1002.         EndM
  1003.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1004.         IMPORT_CFM_FUNCTION DMSetAVPowerState
  1005.     ENDIF
  1006.  
  1007. ;
  1008. ; pascal OSErr DMGetDeviceAVIDByPortAVID(AVIDType portAVID, AVIDType *deviceAVID)
  1009. ;
  1010.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1011.         Macro
  1012.         _DMGetDeviceAVIDByPortAVID
  1013.             move.w              #$043B,D0
  1014.             dc.w                $ABEB
  1015.         EndM
  1016.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1017.         IMPORT_CFM_FUNCTION DMGetDeviceAVIDByPortAVID
  1018.     ENDIF
  1019.  
  1020. ;
  1021. ; pascal OSErr DMGetEnableByAVID(AVIDType theAVID, Boolean *isAVIDEnabledNow, Boolean *canChangeEnableNow)
  1022. ;
  1023.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1024.         Macro
  1025.         _DMGetEnableByAVID
  1026.             move.w              #$063C,D0
  1027.             dc.w                $ABEB
  1028.         EndM
  1029.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1030.         IMPORT_CFM_FUNCTION DMGetEnableByAVID
  1031.     ENDIF
  1032.  
  1033. ;
  1034. ; pascal OSErr DMSetEnableByAVID(AVIDType theAVID, Boolean doEnable, Handle displayState)
  1035. ;
  1036.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1037.         Macro
  1038.         _DMSetEnableByAVID
  1039.             move.w              #$053D,D0
  1040.             dc.w                $ABEB
  1041.         EndM
  1042.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1043.         IMPORT_CFM_FUNCTION DMSetEnableByAVID
  1044.     ENDIF
  1045.  
  1046. ;
  1047. ; pascal OSErr DMGetDisplayMode(GDHandle theDevice, VDSwitchInfoPtr switchInfo)
  1048. ;
  1049.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1050.         Macro
  1051.         _DMGetDisplayMode
  1052.             move.w              #$043E,D0
  1053.             dc.w                $ABEB
  1054.         EndM
  1055.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1056.         IMPORT_CFM_FUNCTION DMGetDisplayMode
  1057.     ENDIF
  1058.  
  1059. ;
  1060. ; pascal OSErr DMConfirmConfiguration(ModalFilterUPP filterProc, UInt32 confirmFlags, UInt32 reserved, Handle displayState)
  1061. ;
  1062.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1063.         Macro
  1064.         _DMConfirmConfiguration
  1065.             move.w              #$083F,D0
  1066.             dc.w                $ABEB
  1067.         EndM
  1068.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1069.         IMPORT_CFM_FUNCTION DMConfirmConfiguration
  1070.     ENDIF
  1071.  
  1072.  
  1073.     ENDIF ; __DISPLAYS__ 
  1074.  
  1075.